import request from "@/utils/request";


export function getAnnouncement(query) {
  return request({
    url: "/manage/auth/getAnnouncements",
    method: "post",
    params: query,
  });
}

export function updateAnnouncement(data) {
  return request({
    url: "/manage/auth/addOrUpdateAnnouncement",
    method: "post",
    data
  });
}

export function getAnnouncementDetail(query) {
  return request({
    url: "/manage/auth/getAnnouncements",
    method: "post",
    params: query,
  });
}


export function delAnnouncementDetail(query) {
  return request({
    url: "/manage/auth/deleteAnnouncement",
    method: "post",
    params: query,
  });
}

